<#import "/manage/tpl/pageBase.ftl" as page>
<@page.pageBase currentMenu="订单详情">
<style>
.simpleOrderReport{
	font-weight: 700;font-size: 16px;color: #f50;
}
</style>
<form action="${basepath}/manage/order/" method="post" theme="simple" name="form1">
	<input id="orderid" type="hidden" value="${e.id!""}" name="id"/>
<#--<%-- 	<s:hidden name="type"/> --%>-->
<#--<%-- 	<s:if test="e.type.equals('update')"> --%>-->
		<div id="buttons" style="text-align: center;border-bottom: 1px solid #ccc;padding: 5px;">
		<div id="updateMsg"><font color='red'>${e.updateMsg!""}</font></div>
			
			<#if e.paystatus??&&(e.paystatus=="y" || e.paystatus=="p")>
				<#if e.status??&&(e.status=="init" || e.status=="stay")>
				   <a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn btn-primary"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning"/>
					<a href="updateOrderStatus?id=${e.id!""}&e.status=cancel" onclick="return onSubmit(this);" value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
				<#elseif e.status??&&e.status=="pass">
					<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
					<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
				<#elseif  e.status??&&e.status=="send">
					<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
					<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" disabled="disabled"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
				<#elseif  e.status??&&e.status=="sign">
					<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn btn-primary"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
					<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" disabled="disabled"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
				<#elseif e.status??&&e.status=="cancel">
					<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&e.status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn btn-primary" disabled="disabled"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
					<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" disabled="disabled"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
				<#elseif e.status??&&e.status=="file">
					<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
						value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
						value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
					<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
						value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
					<input type="button" id="addShipBtn" onclick="return addShipNum(this);" value="添加运单号" class="btn btn-warning"/>
					<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
					<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
					<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" disabled="disabled"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
			</#if>
			<#elseif e.status??&&e.status=="cancel">
				<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
					value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
				<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
					value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
				<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
					value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
				
				<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning" disabled="disabled"/>
				<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning" disabled="disabled"/>
				<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);" disabled="disabled"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
			<#else>
				<a href="updateOrderStatus?id=${e.id!""}&status=send" onclick="return onSubmit(this);"
					value="已发货" class="btn" disabled="disabled"><@i18n.message key="order_status_send"/></a>
				<a href="updateOrderStatus?id=${e.id!""}&status=sign" onclick="return onSubmit(this);"
					value="已签收" class="btn" disabled="disabled"><@i18n.message key="order_status_sign"/></a>
				<a href="updateOrderStatus?id=${e.id!""}&status=file" onclick="return onSubmit(this);"
					value="已完成" class="btn" disabled="disabled"><@i18n.message key="order_status_file"/></a>
				
				<input type="button" id="addPayBtn" onclick="return addPayFunc(this);" value="添加支付记录" class="btn btn-warning"/>
				<input type="button" id="updatePayMoneryBtn" onclick="return updatePayMoneryFunc(this);" value="修改订单总金额" class="btn btn-warning"/>
				<a href="updateOrderStatus?id=${e.id!""}&status=cancel" onclick="return onSubmit(this);"
						value="取消订单" class="btn btn-danger"><@i18n.message key="order_status_cancel"/></a>
			</#if>
		</div>
		
		<div id="addShipDiv" style="display: none;">
		<table class="table">
			<tr>
				<td>添加运单号</td>
				<td>
					<input id="expressNo" name="expressNo">
				</td>
			</tr>
			<tr>
				<td>物流公司名称</td>
				<td>
					<div class="controls"><input id="expressCompanyName" name="expressCompanyName" value=""></div>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="button" onclick="return submitexpressNo();" value="确认" class="btn btn-primary"/>
					<input id="cancelShipBtn" type="button" value="取消" class="btn"/>
				</td>
			</tr>
		</table>
	</div>

	<div id="addPayDiv" style="display: none;">
		<table class="table">
			<tr>
				<td colspan="2">
					<h4>添加支付记录</h4>
				</td>
			</tr>
			<tr>
				<td>支付方式</td>
				<td>
					<select name="orderpay.paymethod">
						<option value="zfb">支付宝</option>
						<option value="yeb">余额</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>支付金额</td>
				<td>
					<input name="orderpay.payamount">
				</td>
			</tr>
			<tr>
				<td>备注</td>
				<td>
					<div class="controls"><input name="orderpay.remark" value="后台添加"></div>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="button" method="insertOrderpay" onclick="return onSubmit(this);" value="确认" class="btn btn-primary"/>
					<input id="cancelPayBtn" type="button" value="取消" class="btn"/>
				</td>
			</tr>
		</table>
	</div>
	
	<div id="updatePayMoneryDiv" style="display: none;">
		<table class="table">
			<tr>
				<td colspan="2">
					<h4>修改订单总金额</h4>
				</td>
			</tr>
			<tr>
				<td>支付金额</td>
				<td>
					<input name="amount">
				</td>
			</tr>
			<tr>
				<td>备注</td>
				<td>
					<div class="controls"><input name="updatePayMoneryRemark" placeholder="修改订单金额备注"></div>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="button" method="updatePayMonery" onclick="javascript:return confirm('确认本次操作?');" value="确认" class="btn btn-primary"/>
					<input id="cancelUpdatePayMoneryBtn" type="button" value="取消" class="btn"/>
				</td>
			</tr>
		</table>
	</div>

	<div id="tabs">
		<ul>
			<li><a href="#tabs-1">订单信息</a></li>
			<li><a href="#tabs-2">订单明细</a></li>
			<li><a href="#tabs-3">买家物流信息</a></li>
			<li><a href="#tabs-4">订单支付信息</a></li>
			<li><a href="#tabs-5">订单日志</a></li>
		</ul>
		<div id="tabs-1">
			<#if e.refundStatusStr??>
				<div class="alert alert-danger" style="margin-bottom: 2px;">
					<strong>退款状态：</strong>${e.refundStatusStr!""}(${e.refundStatus!""})
					<br>
					【请立刻去<a href="http://www.alipay.com" target="_blank">支付宝</a>处理此订单的退款事宜】
				</div>
			</#if>
			
			<div class="alert alert-info" style="margin-bottom: 2px;">
				<strong>订单信息</strong>
				<#if e.score gt 0>
					<span class="badge badge-success" style="margin-left:20px;">赠送${e.score!""}个积分点</span>
				</#if>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<#if e.amountExchangeScore gt 0>
					<span class="badge badge-default" style="margin-left:20px;">消耗掉会员${e.amountExchangeScore!""}个积分点</span>
				</#if>
				&nbsp;&nbsp;&nbsp;&nbsp;
			</div>
			<table class="table table-bordered">
				<tr>
					<th>订单编号</th>
					<th>数量</th>
					<th>创建日期</th>
					<th>订单状态</th>
					<th>支付状态</th>
					<th>订单总金额</th>
					<th>商品总金额</th>
					<th>总配送费</th>
					<th>性别</th>
				</tr>
				<tr>
					<td>&nbsp;${e.orderCode!""}</td>
					<td>&nbsp;${e.quantity!""}</td>
					<td>&nbsp;${e.createdate!""}</td>
					<td>
						<#if e.status?? && (e.status=="sign" || e.status="file" || e.status="finish")>
							<span class="badge badge-success">${e.statusStr!""}</span>
						<#else>
							<span class="badge badge-important">${e.statusStr!""}</span>
						</#if>
					</td>
					<td>
						<#if e.paystatus??&&e.paystatus=="y">
							<span class="badge badge-success">${e.paystatusStr!""}</span>
						<#else>
							<span class="badge badge-important">${e.paystatusStr!""}</span>
						</#if>
					</td>
					<td>&nbsp;<span class="simpleOrderReport">${e.amount!""}</span>
						<#if e.updateAmount??&&e.updateAmount=="y"><font color="red">【修】</font></#if>
					</td>
					<td>&nbsp;${e.ptotal!""}</td>
					<td>&nbsp;${e.fee!""}</td>
					<td>
					<#if e.ordership??>
						<#if e.ordership.sex=='1'>
							男
							<#elseif e.ordership.sex=='2'>
							女
						</#if>
						<br>
					</#if>
					</td>
				</tr>
				<#if e.otherRequirement??>
					<tr>
						<td colspan="20">附加要求:${e.otherRequirement!""}</td>
					</tr>
				</#if>
			</table>
		</div>
		<!--订单明细-->
		<div id="tabs-2">
			<table class="table table-bordered">
				<tr style="background-color: #dff0d8">
					<th width="50px">序号</th>
					<th>商品编号</th>
					<th>商品名称</th>
					<th>购买的商品规格</th>
 					<th>赠送积分</th> 
					<th>数量</th>
					<th>单价</th>
 					<!--<th>配送费</th>-->
					<th>小计</th>
				</tr>
				<#list e.orderdetail as item>
					<tr>
						<td>&nbsp;${item_index+1}</td>
						<td nowrap="nowrap">
							<a target="_blank" style="text-decoration: underline;" href="${systemSetting().center}/manage/product/toEdit?id=${item.productID!""}">
								${item.productID!""}
							</a>
							<#if item.lowStocks?? && item.lowStocks=="y"><font color="red">【缺货】</font></#if>
						</td>
						<td>
						<a target="_blank" style="text-decoration: underline;" href="${systemSetting().item}/product/${item.productID!""}.html">
						<#if item.productName??>
								<#if item.productName?length gte 50>
									${item.productName?substring(0,50)}...
								<#else>
									${item.productName!""}
								</#if>
						</#if>
						</a>
						</td>
						<td>&nbsp;${item.specInfo!""}</td>
						<td>&nbsp;${item.score!""}</td>
						<td>&nbsp;${item.number!""}</td>
						<td>&nbsp;￥${item.price!""}</td>
						<!--<td>&nbsp;￥${item.fee!""}</td>-->
						<td>&nbsp;￥${item.total0!""}</td>
						</td>
					</tr>
				</#list>
			</table>
		</div>
		<!--买家物流信息-->
		<div id="tabs-3">
			<div class="alert alert-info" style="margin-bottom: 2px;">
				<strong>买家物流信息</strong>
			</div>
			<table class="table table-bordered">
				<tr>
					<th>购买人ID</th>
					<th>收货地址</th>
					<th>联系方式</th>
					<th>收货人姓名</th>
					<th>快递方式</th>
					<th>快递单号</th>
				</tr>
				<tr>
					<td>&nbsp;${e.accountName!""}</td>
					<td>
						<#if e.ordership??>
						省份：${e.ordership.province!""}<br>
						城市：${e.ordership.city!""}<br>
						区域：${e.ordership.area!""}<br>
						详细地址：${e.ordership.shipaddress!""}<br>
						邮编：${e.ordership.zip!""}<br>
						备注：${e.ordership.remark!""}<br>
						</#if>
						<#--<#if e.status??&&e.status=="init">-->
                            <#--<a class="btn" href="${basepath}/manage/order/selectOrdership?orderid=${e.id!""}">修改收货人配送信息</a>-->
						<#--<#else>-->
                            <#--<a class="btn" href="${basepath}/manage/order/selectOrdership?orderid=${e.id!""}" disabled="disabled" onclick="javascript:return false;">修改收货人配送信息</a>-->
						<#--</#if>-->
					</td>
					<td>
						<#if e.ordership??>
							手机：${e.ordership.phone!""}<br>
							座机：${e.ordership.tel!""}<br>
						</#if>
					</td>
					<td>
						<#if e.ordership??>
							姓名：${e.ordership.shipname!""}<br>
						</#if>
					</td>
					<td>&nbsp;
						${e.name!""}<br>
						${e.expressCompanyName!""}<br>
					</td>
					<td>&nbsp;${e.expressNo!""}<input type="hidden" value="${e.expressNo!""}" id="expressNohid"/></td>
				</tr>
			</table>
		</div>
		<!--订单支付信息-->
		<div id="tabs-4">
			<div class="alert alert-success" style="margin-bottom: 2px;">
				<strong>订单支付记录</strong>
			</div>
			<table class="table table-bordered">
				<tr>
					<th width="50px">序号</th>
					<th nowrap="nowrap">商户订单号</th>
					<th nowrap="nowrap">支付方式</th>
					<th nowrap="nowrap">支付金额</th>
					<th nowrap="nowrap">支付时间</th>
					<th nowrap="nowrap">支付状态</th>
					<th nowrap="nowrap">支付宝交易号</th>
					<th nowrap="nowrap">备注</th>
				</tr>
				<#if e.orderpayList??>
				<#list e.orderpayList as item>
					<tr>
						<td>&nbsp;${item_index+1}</td>
						<td>&nbsp;${item.id!""}</td>
						<td>
							${item.paymethod!""}
							<#if item.paymethod??&&item.paymethod=="n">
								<@KV.map key="orderpay_paymethod_n"/>
							<#elseif item.paymethod??&&item.paymethod=="y">
								<@KV.map key="orderpay_paymethod_y"/>
							</#if>
						</td>
						<td>&nbsp;${item.payamount!""}</td>
						<td>&nbsp;${item.createtime!""}</td>
						<td>
							<#if item.paystatus?? && item.paystatus=="n">
								<@KV.map key="orderpay_paystatus_n"/>
							<#elseif item.paystatus?? && item.paystatus=="y">
								<span class="badge badge-success"><@KV.map key="orderpay_paystatus_y"/></span>
							</#if>
						</td>
						<td>&nbsp;${item.tradeNo!""}</td>
						<td>&nbsp;${item.remark!""}</td>
					</tr>
				</#list>
				</#if>
			</table>
		</div>
		
		<!--订单日志-->
		<div id="tabs-5">
			<table class="table table-bordered">
				<tr style="background-color: #dff0d8">
					<th width="50px">序号</th>
					<th>操作人</th>
					<th>操作人类型</th>
					<th>时间</th>
					<th>日志</th>
				</tr>
				<#list e.orderlogs as item>
					<tr>
						<td>&nbsp;${item_index+1}</td>
						<td nowrap="nowrap">&nbsp;
							<#if item.accountType??&&item.accountType=="w">
								<a target="_blank" href="${basepath}/manage/account/show?account=${item.account!""}">${e.accountName!""}</a>
							<#elseif item.accountType??&&item.accountType=="m">
								<a target="_blank" href="${basepath}/manage/user/show?account=${item.account!""}">${e.accountName!""}</a>
							<#elseif item.accountType??&&item.accountType=="p">
								支付系统
							<#else>
								未知
							</#if>
						</td>
						<td>&nbsp;
							<#if item.accountType??&&item.accountType=="w">
								客户
							<#elseif item.accountType??&&item.accountType=="m">
								${systemSetting().systemCode}(系统)
							<#else>
								未知
							</#if>
						</td>
						<td>&nbsp;${item.createdate!""}</td>
						<td>&nbsp;${item.content!""}</td>
					</tr>
				</#list>
			</table>
		</div>
	</div>
</form>

<script>
$(function() {
	$( "#tabs" ).tabs({
		//event: "mouseover"
	});
	$("#cancelPayBtn").click(function(){
		$("#addPayDiv").slideUp();
		$("#addPayBtn").show();
		//$("#buttons").find("input[type=button]").each(function(){
			//$(this).attr("disabled","");
		//});
		return false;
	});
	$("#cancelShipBtn").click(function(){
		$("#addShipDiv").slideUp();
		$("#addShipBtn").show();
		return false;
	});
	$("#cancelUpdatePayMoneryBtn").click(function(){
		$("#updatePayMoneryDiv").slideUp();
		$("#updatePayMoneryBtn").show();
		return false;
	});
});

//添加支付记录
function addPayFunc(){
	$("#addPayDiv").slideDown();
	$("#addPayBtn").hide();
	return false;
}

//添加运单号
function addShipNum(){
	$("#addShipDiv").slideDown();
	$("#addShipBtn").hide();
	return false;
}

function updatePayMoneryFunc(){
	$("#updatePayMoneryDiv").slideDown();
	$("#updatePayMoneryBtn").hide();
	return false;
}

function onSubmit(obj){
    var expressNo = $("#expressNohid").val();
	if(confirm("确认本次操作?")){
//		 if(expressNo=="" || expressNo==null)
//	     {
//	        alert("运单号不可以为空,请先输入运单号！");
//	        return;
//	     }
		$("form[name=form1]").attr("action","${basepath}/manage/order/"+$(obj).attr("method"))
		$("form[name=form1]").submit();
	}
	if($(obj).attr("disabled")=='disabled'){
		alert("disabled不可点击"+$(obj).attr("disabled"));
		return false;
	}
}

function submitexpressNo(){
	if(confirm("确认本次操作?")){
	        if($("#expressNo").val()=="" || $("#expressNo").val()==null)
	        {
	        	alert("运单号不可以为空！");
	        	return;
	        }
	        location.href="${basepath}/manage/order/insertOrderExpressNo?expressNo="+$('#expressNo').val()+"&expressCompanyName="+$('#expressCompanyName').val()+"&id="+$("#orderid").val();
	}
}
</script>

</@page.pageBase>